import request from '@/utils/request'

export default {
  // 运营模块列表
  chargeList(query) {
    return request({
      url: '/system/charge/list',
      method: 'get',
      params: query
    })
  },

  deptAppMenu(query) {
    return request({
      url: '/api/deptAppMenu/list',
      method: 'get',
      params: query
    })
  },

  // 运营模块添加
  chargeAdd(data) {
    return request({
      url: '/system/charge/add',
      method: 'post',
      data: data
    })
  },
  // 详情
  chargeInfo(id) {
    return request({
      url: `/system/charge/getInfo/${id}`,
      method: 'get'
    })
  },
  // 修改
  chargeEdit(data) {
    return request({
      url: '/system/charge/edit',
      method: 'post',
      data: data
    })
  },

  // 删除
  chargeRemove(id) {
    return request({
      url: `/system/charge/remove/${id}`
    })
  }
}
